{% extends "_layout_site_default.html" %}

{% block head_title %}User List{% endblock %}

{% block body %}

<div class="container-fluid">
	<div class="row">
        
        <div class="col-md-2">
            
            {{ side_navpanel('home') }}
            
        </div>
        
        <div class="col-md-10">
            
            <table class="table table-hover"> 
                <thead>
                    <tr>
                         
                        <th class="col-md-1">#</th>
                        <th class="col-md-4">Username</th>
                        <th class="col-md-3">First Name</th> 
                        <th class="col-md-3">Last Name</th> 
                        <th class="col-md-1"></th>
                    </tr> 
                </thead> 
                <tbody> 
                    {% for item in user_list %}
                    <tr>
                        <td scope="row">
                            
                            {{loop.index}}</td> 
                        <td>
                            <a href="/user/edit/{{item.key.urlsafe()}}">{{ item.email }}</a>
                            
                        </td> 
                        <td>{{ item.first_name }}</td> 
                        <td>{{ item.last_name }}</td> 
                        <td>
                            <a href="/user/edit/{{item.key.urlsafe()}}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
                            &nbsp;&nbsp;
                            <a href="/user/delete/{{item.key.urlsafe()}}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
                            
                            
                        </td>
                    </tr>
                    {% endfor %}
                </tbody> 
            </table>
                
            
            <!--<p>This is the home page of this web site.</p>
        
            <p>
                {{x}}
            </p>
            
            <p>
                {{logout_url}}
            </p>
            
            <p>
                {{user}}
            </p>-->
            
            
        </div>
		

	</div>
</div>

{% endblock %}